<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%customer}}".
 *
 * @property int $id
 * @property string $name
 * @property string $address
 * @property string $registration_date
 * @property int $status
 */
class CacheModel extends \yii\base\Model {

    public static function getCache() {
        $cache = Yii::$app->cache;
        $data = $cache->get(static::className());
        if ($data !== false) {
            return $data;
        }
        return static::cacheDefault();
    }

    public static function cacheDefault() {
        return false;
    }

}
